package com.service.impl;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.mapper.LoginDao;
import com.dao.mapper.OrgDao;
import com.domain.Org;
import com.domain.UserLogin;
import com.service.LoginService;
import com.service.OrgService;
import com.utils.Ret;

@Service
public class OrgServiceImlp implements OrgService {

	@Autowired
	OrgDao orgDao;

	@Override
	public void changeOrg(HttpServletRequest request,String ocode) {
		request.getSession().setAttribute("ocode", ocode);
	}

	@Override
	public List<Org> getOrgs() {
		return orgDao.getOrgs();
	}


}
